package cn.iocoder.yudao.module.fengdong.smartelderly.controller.admin.oldman.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.system.enums.DictTypeConstants;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 * 老人管理 Excel VO
 *
 * @author 沣东养老院管理员
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false) // 设置 chain = false，避免老人 导入有问题
public class OldmanImportExcelVO {


    @ExcelProperty("姓名")
    private String name;

    @ExcelProperty("身份证")
    @ColumnWidth(value = 18)
    private String identityCard;

    @ExcelProperty("手机号")
    @ColumnWidth(value = 11)
    private String phoneNumber;

    @ExcelProperty("年龄/岁")
    private Integer age;

    @ExcelProperty( "监护人姓名")
    private String guardianName;

    @ExcelProperty( "监护人身份证")
    @ColumnWidth(value = 18)
    private String guardianCard;

    @ExcelProperty("监护人手机号")
    @ColumnWidth(value = 11)
    private String guardianNumber;

    @ExcelProperty("备注")
    private String mark;

    @ExcelProperty("房间号")
    private Integer roomId;

    @ExcelProperty("二维码")
    private String qrUrl;

    @ExcelProperty(value = "性别", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.USER_SEX) // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer sex;

    @ExcelProperty(value = "状态 ", converter = DictConvert.class)
    @DictFormat(DictTypeConstants.COMMON_STATUS)// TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer type;

    @ExcelProperty("楼层")
    private String floorRoom;

    @ExcelProperty("积分")
    private Integer point;
//
//    @ExcelProperty("其他信息")
//    private String others;

}
